//
//  DCHViewControllerGUANGGAO.m
//  DCH-BaiSiBuDeJie
//
//  Created by apple on 16/10/24.
//  Copyright © 2016年 xiaomage. All rights reserved.
//

#import "DCHViewControllerGUANGGAO.h"

#define DCHScreenH [UIScreen mainScreen].bounds.size.height
#define DCHScreenW [UIScreen mainScreen].bounds.size.width

#define iPhone6P (DCHScreenH ==736)
#define iPhone6 (DCHScreenH ==667)
#define iPhone5 (DCHScreenH ==568)
#define iPhone4 (DCHScreenH ==480)

@interface DCHViewControllerGUANGGAO ()
@property (weak, nonatomic) IBOutlet UIImageView *lauuchImageView;


@end

@implementation DCHViewControllerGUANGGAO

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupLaunchImageView];
    
}

- (void)setupLaunchImageView
{
   //根据不同的屏幕去加载不同的图片
    
    UIImage *image =nil;
    
    if (iPhone6P) {
        
        image =[UIImage imageNamed:@"LaunchImage-800-Portrait-736h@3x"];
    }else if (iPhone6){
        image =[UIImage imageNamed:@"LaunchImage-800-667h"];
    }else if (iPhone5){
        image = [UIImage imageNamed:@"LaunchImage-700-568h"];

    }else if (iPhone4)
    {
        image = [UIImage imageNamed:@"LaunchImage-700"];
    }

    _lauuchImageView.image =image;
    
}



@end
